
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024 —05 —12
 * Time: 21:15
 */
public class Test {
    public static void main(String[] args) {
        TestHeap testHeap = new TestHeap();
        int[] array = new int[]{27,15,19,18,28,34,65,49,25,37};
        testHeap.initiateElem(array); //对elem进行初始化
        testHeap.creatHeap();

        System.out.println();
        testHeap.pop();
        testHeap.creatHeap();

        System.out.println();
        System.out.println("插入元素后");
        testHeap.push(99);
        testHeap.creatHeap();
    }
}

